package org.bitoy.shimmer.adapter.controller.dto;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.bitoy.shimmer.common.enums.Gender;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(name = "demo dto")
@Data
public class DemoRetrieveDTO {
    @NotNull(message = "id不能为空")
    @ApiModelProperty("id")
    private Long id;
    @NotBlank(message = "name不能为空")
    @Schema(name = "name", allowableValues = {"a", "b"})
    private String name;
    @Future
    @ApiModelProperty(value = "fff", name = "ddd")
    private LocalDateTime end;
    @ApiModelProperty(value = "性别")
    private Gender gender;
}
